home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguin_dinner.swf
/
scripts
/
__Packages
/
classes
/
ui
/
DayStartCaption.as
< prev
next >
Wrap
Text File
|
2008-03-17
|
1KB
|
39 lines
class classes.ui.DayStartCaption extends classes.ui.AbstractWidget
{
function DayStartCaption()
{
super();
this.doLater(this.init);
}
function init()
{
this.day_num_tf = this.caption.day_num_tf;
this.goal_tf = this.caption.goal_tf;
this.day_num_tf.text = "Day " + (classes.core.SOManager.getInstance().__get__totalDaysPlaying() + 1);
this.goal_tf.text = "You need to make " + classes.utils.Utils.formattedCurrency(classes.game.GameData.__get__DAY_GOAL());
this.startLocalLoop(this.update);
this.animator = new classes.core.Animator([this.blinds]);
this.blinds.setAnimationState("state_fixed");
this.localConv = com.potapenko.managers.Conv.create();
this.localConv.addPause(1000);
this.localConv.put(this.blinds,"animate",1500,["state_open",classes.movieclip.AnimatedClip.STATE_DEFAULT]);
var _loc2_ = 10;
while(_loc2_ >= 0)
{
this.localConv.put(this.caption,"_alpha","2",_loc2_ * 10);
_loc2_ = _loc2_ - 1;
}
this.localConv.put(classes.core.WidgetManager.getInstance(),"unlockAllGlobal",0);
this.localConv.put(this,"dispose",0);
}
function update()
{
this.animator.update();
}
function dispose()
{
this.animator.dispose();
super.dispose();
}
}